<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * { margin: 0; padding: 0; box-sizing: border-box;}
    body {
      background: #eeece5;
      padding: 50vh 0;
      text-align: center;
      font-size: 2.5em;
    }
    h1 {
      background:  linear-gradient(
        to bottom, #ef4e00 50%, transparent 50% 
        ) center center / 100vh fixed;  
        /*  加上 fixed 固定在视口，不会移动 */

      color: transparent;
      background-clip: text;
      -webkit-text-stroke:  2px #ef4e00;
    }
  </style>
</head>
<body>
  <h1>小鸡炖蘑菇</h1>
</body>
</html>